home *** CD-ROM | disk | FTP | other *** search
/ CICA 1995 September (Japanese) / CICA Shareware for Windows CD-ROM (Walnut Creek) (September 1995) (Japanese) (Disc 2).iso / disc2 / patches / symantec / pro61.exe / MFCSAM.EXE / CALC / CALC.H < prev    next >
Encoding:
C/C++ Source or Header  |  1993-09-22  |  7.1 KB  |  232 lines

  1. // Filename: CALC.H                                         
  2. // "CALC" Generated by Visual Programmer.                   
  3. // Author:   Blue Sky                                       
  4.  
  5. // 
  6. // ***********************************************************************
  7. // Do not add code here.
  8. // 
  9. // This file is maintained by the Switch-It Module.
  10. // As you make changes in your applications design,
  11. // this file is automatically updated, therefore you never modify this file.
  12. // 
  13. // 
  14. // 
  15. // For more information,
  16. // see the section "How code is generated" in the documentation.
  17. // 
  18. // ***********************************************************************
  19. // 
  20.  
  21. // ****************************************************************************
  22. // Windows messages for WinHelp support 
  23. // ****************************************************************************
  24.  
  25. #ifndef WM_COMMANDHELP
  26. #define WM_COMMANDHELP              0x0365
  27. #endif
  28.  
  29. #ifndef WM_HELPHITTEST
  30. #define WM_HELPHITTEST              0x0366
  31. #endif
  32.  
  33. // ****************************************************************************
  34. // WPARAM for registered Windows message 
  35. // ****************************************************************************
  36.  
  37. #define SIM_CTRLPAINT             1
  38. #define SIM_CTLCOLOR              2
  39. #define SIM_GETCHILDDIALOG        3
  40. #define SIM_SETCHILDDIALOG        4
  41. #define SIM_SIZEDIALOG            5
  42. #define SIM_LOADACCELTABLE        6
  43. #define SIM_RELOADACCELERATORS    7
  44.  
  45. typedef struct tagBLDSetChildDialog
  46.     {
  47.     CWnd *pWnd;
  48.     UINT  nStyle;
  49.     }BLDSetChildDialog;
  50. typedef BLDSetChildDialog FAR *LPBLDSetChildDialog;
  51.  
  52. // ****************************************************************************
  53. // Types for Graphic Buttons 
  54. // ****************************************************************************
  55.  
  56. #define SIM_GRAPHIC           1
  57. #define SIM_GRAPHIC_BKGRND    2
  58. #define SIM_GRAPHIC_3D        3
  59.  
  60.  
  61. // To support name from previous version.
  62. #define CWinMakerFrameWnd   Cwm_MainBaseWnd
  63. #define CWinMakerApp        Cwm_BaseApplication
  64. #define CWinMakerClientDlg  CSimClientDlg
  65.  
  66.     
  67. #if !defined(THISISBLDRC)
  68.     
  69. #include <AFXEXT.H>
  70. #endif
  71.     
  72.  
  73. //  Give access to variables in all code modules 
  74. extern DWORD     dwDialogProp;
  75. extern BOOL      b256Color;
  76. extern BOOL      bPreCreateCheck;
  77. extern HINSTANCE hBMPInst;
  78. extern UINT      wPrivateMessage;
  79.  
  80. #define CLIENTSTRIP WS_MINIMIZE|WS_MAXIMIZE|WS_CAPTION|WS_BORDER|WS_DLGFRAME|WS_SYSMENU|WS_POPUP|WS_THICKFRAME|DS_MODALFRAME|DS_SYSMODAL|WS_VISIBLE
  81. #define TOOLBARSTRIP WS_MINIMIZE|WS_MAXIMIZE|WS_POPUP|DS_SYSMODAL|WS_VISIBLE
  82.  
  83. typedef struct 
  84.    {
  85.    long          style;
  86.    // MORE ...
  87.    } BLD_DLGTEMPLATE;
  88.  
  89. typedef BLD_DLGTEMPLATE far             *LPBLD_DLGTEMPLATE;
  90.  
  91. #define BLDTOOLBARSTYLEDEFAULT           (UINT)0xffff
  92.  
  93.  
  94.  
  95. // Constants for error message strings
  96. #define BLD_CannotRun                   4000
  97. #define BLD_CannotCreate                4001
  98. #define BLD_CannotLoadMenu              4002
  99. #define BLD_CannotLoadIcon              4003
  100. #define BLD_CannotLoadBitmap            4004
  101. #define BLD_CannotCreateWindow          4005
  102.     
  103. // User defined constant ID's
  104.     
  105. #define ID_DISPLAY                      10000
  106.  
  107. // Resource IDs for menus and accelerators
  108. #define IDR_CALC                        2
  109.  
  110.     
  111. // Switch-It Module automatic generated constant ID's
  112.     
  113. #define WMPDEBUG 
  114.     
  115.     
  116. // Help ID's used by functions
  117.     
  118.     
  119. #if !defined(THISISBLDRC)
  120.     
  121. // Switch-It Module class definitions.
  122. class Cwm_BaseApplication;
  123. class Cwm_MainBaseWnd;
  124. class Cwm_Application;
  125. class Cwm_MainWnd;
  126. class CSimModelessDlg;
  127. class CSimModalDlg;
  128. class CSimClientDlg;
  129. class CSimToolbar;
  130. class Cwm_CALCClientBaseDlg;
  131. class Cwm_CALCClientDlg;
  132.  
  133. BOOL BLDSwitchMenu(CWnd *,char *);
  134. HMENU BLDLoadMenu(CWnd *,int,HMENU *,BOOL);
  135. BOOL BLDLoadAccelerators(CWnd *,int);
  136. HBITMAP BLDLoadBitmap(HINSTANCE,char *);
  137.  
  138. Cwm_MainWnd* BLDMainCreateWnd(CWnd *pAParent);
  139. BOOL BLDCreateClientControlsDef(char *,CSimClientDlg *);
  140. BOOL BLDCreateClientControls(char *,CSimClientDlg *);
  141.  
  142.  
  143. int  BLDDisplayMessageDef(HWND,UINT,char *,int);
  144. BOOL BLDDrawBitmapDef(LPDRAWITEMSTRUCT,char *,BOOL);
  145. BOOL BLDDrawIconDef(LPDRAWITEMSTRUCT,char *);
  146. BOOL BLDSendMDIMessageDef(CWnd *,UINT,int);
  147. BOOL BLDDrawBkgndIconDef(HWND,LPPAINTSTRUCT ,char *,int);
  148. BOOL BLDDrawBkgndBitmapDef(HWND,LPPAINTSTRUCT,char *,int,BOOL,BOOL,int,int);
  149. BOOL BLDDrawAutoStateDef(LPDRAWITEMSTRUCT,char *,BOOL,BOOL);
  150. BOOL BLDDrawStateBitmapDef(LPDRAWITEMSTRUCT,char *,char *,char *,char *,BOOL);
  151. BOOL BLDDrawStateIconDef(LPDRAWITEMSTRUCT,char *,char *,char *,char *);
  152. void BLDFindCtrlsRightBottomDef(CWnd *,int *,int *);
  153. void BLDCalcScrollRangesDef(CWnd *,int *,int *,int,int,int,int);
  154. BOOL BLDScrollDlgDef(CWnd *,UINT,int,int,int,int,int,int,int,int,BOOL,int *,int *);
  155. BOOL BLDSizeDlgDef(CWnd *,int,int);
  156. BOOL BLDCheckF1HelpKeyDef(BOOL);
  157. BOOL BLDDrawItemDef(HWND,LPDRAWITEMSTRUCT);
  158. static BOOL BLDMoveTo(HDC,int,int);
  159. static BOOL BLDDrawFrame(HDC,int,int,int,int,BOOL);
  160. BOOL BLDBitmapToScreenDef(HDC,char *,int,int,int,int,DWORD,BOOL);
  161. HBRUSH BLDGetGlobalBrushDef(HWND hCtrl,HDC hDC);
  162.  
  163. int BLDDisplayMessage(HWND,UINT,char *,int);
  164. BOOL BLDDrawBitmap(LPDRAWITEMSTRUCT,char *,BOOL);
  165. BOOL BLDDrawIcon(LPDRAWITEMSTRUCT,char *);
  166. BOOL BLDSendMDIMessage(CWnd *,UINT,int);
  167. BOOL BLDDrawBkgndIcon(HWND,LPPAINTSTRUCT ,char *,int);
  168. BOOL BLDDrawBkgndBitmap(HWND,LPPAINTSTRUCT ,char *,int,BOOL,BOOL,int,int);
  169. BOOL BLDDrawAutoState(LPDRAWITEMSTRUCT,char *,BOOL,BOOL);
  170. BOOL BLDDrawStateBitmap(LPDRAWITEMSTRUCT,char *,char *,char *,char *,BOOL);
  171. void BLDFindCtrlsRightBottom(CWnd *,int *,int *);
  172. BOOL BLDScrollDlg(CWnd *,UINT,int,int,int,int,int,int,int,int,BOOL,int *,int *);
  173. BOOL BLDSizeDlg(CWnd *,int,int);
  174. BOOL BLDCheckF1HelpKey(BOOL);
  175. BOOL BLDDrawItem(HWND,LPDRAWITEMSTRUCT);
  176. BOOL BLDBitmapToScreen(HDC,char *,int,int,int,int,DWORD,BOOL);
  177. BOOL BLDDrawStateIcon(LPDRAWITEMSTRUCT,char *,char *,char *,char *);
  178. void BLDCalcScrollRanges(CWnd *,int *,int *,int,int,int,int);
  179. CWnd* BLD_CALCClientClFunc(CWnd *pWnd);
  180.  
  181. #endif
  182.     
  183.  
  184.  
  185. // *********************************************************
  186. // ERROR MESSAGE HANDLING (Definitions can be overruled.)
  187. // *********************************************************
  188.  
  189. #ifndef BLDMAINCAPTION
  190. #define BLDMAINCAPTION "Calculator"
  191. #endif
  192.  
  193. #ifndef BLDLOADERROR
  194. #define BLDLOADERROR "Cannot load string."
  195. #endif
  196.  
  197.  
  198.  
  199. // Switch-It Module color definitions
  200.  
  201. #define  BLD_BLACK          0X00000000L
  202. #define  BLD_WHITE          0X00FFFFFFL
  203. #define  BLD_GRAY           0X007F7F7FL
  204. #define  BLD_LTGRAY         0X00C0C0C0L
  205.  
  206.  
  207. // Switch-It Module definitions
  208.  
  209. #define BLD_MAXPATH         256
  210.  
  211. // Switch-It Module global dialog box properties
  212.  
  213. #define BLDGRAY_DIALOGBOX   0x00000001L
  214. #define BLDGRAY_BUTTON      0x00000002L
  215. #define BLDGRAY_COMBOBOX    0x00000004L
  216. #define BLDGRAY_LISTBOX     0x00000008L
  217. #define BLDGRAY_EDIT        0x00000010L
  218. #define BLDGRAY_SCROLLBAR   0x00000020L
  219. #define BLDGRAY_TEXT        0x00000040L
  220.  
  221.     
  222. #if !defined(THISISBLDRC)
  223.     
  224. #include "SERVICE.WMH"
  225. #include "CALC.WMH"
  226.  
  227.  
  228. extern Cwm_Application  TheApp;
  229.  
  230. #endif
  231.     
  232.